vcCamera

vcCamera provides the capability of controlling a virtual camera and its view for an environment.

See in: Overview

Module: vcCore

Parent: vcObject

Children -

Referenced by: vcWorld.findCamera()

Properties

Learn how to use properties here. The properties are also inherited from the parent class.

NameTypeAccessDescription
CenterOfInterestvcVectorRWGets or sets camera's center of interest location.
ClipFarRealRWGets or sets how far objects can be from a camera in order to be displayed. If objects are too far then they are not visible.
ClipNearRealRWGets or sets how close objects can be to a camera in order to be displayed. If objects are too close then they are not visible.
ClippingMethodvcClippingModeRWGets or sets the clipping mode for a camera's view.
EyevcVectorRWGets or sets camera's eye location.
MatrixvcMatrixRGets the whole camera matrix.
NameStringRWGets or sets the name of the camera.

Example: Define Cameras Eye and Center of Interest

""" This example shows how to move camera by defining camera's eye and center of interest """

import vcCore as vc

app = vc.getApplication()
vec = vc.vcVector
camera = vc.getWorld().findCamera()

camera_eye_vector = vec.new(5000,5000,2000)
camero_coi_vector = vec.new(0,0,0)  

#tip: set coi first, and then set eye of camera
camera.CenterOfInterest = camero_coi_vector
camera.Eye = camera_eye_vector

app.render()